#ifndef __STRING_MEMMOVE_H__
#define __STRING_MEMMOVE_H__

/**
 *  memmove()
 *  presune pametove bloky o <count> bytech
 */
void *memmove(void *dest, const void *src, unsigned count) {
  char *tmp;
  char *s;

  if (dest <= src) {
    tmp = (char *) dest;
    s   = (char *) src;
    while (count--) *tmp++ = *s++;
  } else {
    tmp = (char *) dest + count;
    s = (char *) src + count;
    while (count--)	*--tmp = *--s;
  }
  return dest;
}

#endif
